package com.atguigu.mybatis.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("sword1")
@Data
public class Sword {

    @Value("杀猪刀")
    private String name;
    @Value("100")
    private int power;

    public void doHit(){
        System.out.println("doHit...");
    }
}
